package yang.VirtualMachine.chapter9;

import java.io.IOException;
import java.io.InputStream;

import yang.VirtualMachine.chapter9.classStruct.ClassStructController;

/**
 * 分析一个class 文件的信息
 * @author xinxin
 */
public class ShowClassDetail {
	/** 要解析的class文件 */
	public static final String classFlie = "D:\\WorkspaceAllInOne\\simpleStudy\\VirtualMachine\\target\\classes\\yang\\VirtualMachine\\chapter9\\SimpleUser.class";

	public static void main(String[] args) throws IOException {
		InputStream input = ClassUtil.getInputStream(classFlie);
		
		int step = ClassStructController.Start_Step;
		while (step <= ClassStructController.Stop_Step) {
			ClassStructController.processController(step, input);
			step++;
		}
		System.out.println("*******************show ClassBean********************");
		ClassUtil.showClassBean(ClassBean.getInstance());
	}

}
